package ru.yermak.bookkeeping.ui;

import javax.swing.*;
import java.util.List;

/**
 * User: harrier
 * Date: Aug 10, 2008
 */
public class BMenuBar extends JMenuBar {
    private List menus;

    public void setMenus(List menus) {
        this.menus = menus;
    }

    public void init() {
        for (Object menu : menus) {
            this.add((JMenu) menu);
        }
    }

}
